#include<stdio.h>
#include<stdlib.h>
#include<assert.h>


typedef int HeepDatatype;

typedef struct Heep
{
	HeepDatatype *a;
	int capacity;
	int size;
}Heep;

void HeepInit(Heep*p);
void HeepPush(Heep*p, HeepDatatype x);
void HeepPop(Heep*p);
void HeepDestroy(Heep*p);